using System;

namespace Phoenix.Diagnostics
{
    public class TraceErrorReporter : IErrorReporter
    {
        public void ReportException(Exception ex, string extraInformation, bool fatalError)
        {
           Trace.WriteError(
               this, 
               ()=> string.Format("{1} Error reported, additional info: {0}", extraInformation, fatalError ? "Fatal" : null), 
               exception: ex);
        }
    }
}